package ooday02;

public class Student extends person{
    String classMate;
    String stuID;
    Student(String name,String address,String gender,int age,String classMate,String stuID) {
        super(name,address,gender,age);
        this.classMate=classMate;
        this.stuID=stuID;
    }
    void student(){
        System.out.println("叫"+name+"今年"+age+"岁的"+gender+"在"+address+"上课");
    }
    void eat(){
        System.out.println("叫"+name+"今年"+age+"岁的"+gender+"在"+address+"吃糠咽菜");
    }
}
